/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.hive;

import it.hive.model.common.ApplicationProperties;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

/**
 * 
 * @author 04400099
 */
public class M2OReloadedPlayer extends Application {

	@Override
	public void start(Stage stage) throws Exception {
		it.hive.model.Application.getIstanza();
		Parent root = FXMLLoader.load(getClass().getResource("gui/M2OReloadedPlayer.fxml"));
		Scene scene = new Scene(root);
		stage.getIcons().add(new Image(ClassLoader.getSystemClassLoader().getResource("rel.jpg").openStream()));
		stage.titleProperty().bind(ApplicationProperties.FrameTitle);
		stage.setScene(scene);
		stage.show();
	}

	/**
	 * The main() method is ignored in correctly deployed JavaFX application. main() serves only as fallback in case the application can not be
	 * launched through deployment artifacts, e.g., in IDEs with limited FX support. NetBeans ignores main().
	 * 
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String[] args) {
		launch(args);
	}

}